Port independent data transaction interface for multi-port devices

ABSTRACT

A port independent data transaction interface for multi-port devices is provided. The port independent data transaction interface includes a command channel that receives command data and a source id. The source id indicates a source device that transmitted the command data. In addition, a data-in channel is included that receives write data and a write source id. Similar to the source id, the write source id indicates a source device that transmitted the write data. The port independent data transaction interface further includes a data-out channel that provides read data and a read id. The read id indicates a source device that transmitted a read command corresponding to the read data. The port independent data transaction interface utilizes the source id to associate command data with corresponding write data and read data.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates generally to data transfer interfaces, and moreparticularly to a port independent data transaction interface formulti-port devices.

2. Description of the Related Art

Multi-port architectures currently are available that allow multipleclient devices to communicate to a single device. For example, aconventional multi-client semiconductor memory system includes one ormore client devices connected via a bus to a memory controller, whichmanages data flow to and from the client devices to a memory.Interfaces, or protocols, are used to define communication with theconventional multi-port architectures, as illustrated in FIG. 1A.

FIG. 1A is a block diagram showing a prior art multi-port interface 100.In this example, the multi-port interface 100 defines an interface for aconventional multi-port memory controller 102, and includes a commandchannel 104, and data-in channel 106, and a data-out Channel 108. Thecommand channel 104 is utilized to provide commands to the memorycontroller 102, such as read and write commands. The data-in channel 106is utilized to provide write data to the memory controller 102. Forexample, when a write command is received on the command channel 104,the data to be written to memory is provided on the data-in channel 106.The data-out channel 108 is utilized to provide data to the requestingdevice. For example, when a read command is received on the commandchannel 104, the data read from the memory device is provided to therequesting device on the data-out channel 108.

Unfortunately, the conventional multi-port interface 100 tightly couplesthe data with the corresponding commands, as illustrated in FIG. 1B.FIG. 1B is a block diagram showing an exemplary prior art multi-portmemory architecture 110. The prior art multi-port memory architecture110 includes a multi-port memory controller 102 coupled to a memorydevice 114. Coupled to each port of the multi-port memory controller102, is a source device 112 a-112 c. As will be appreciated by thoseskilled in the art, the multi-port memory controller 102 facilitatescommunication between each source device 112 a-112 c and the memorydevice 114.

To interact with the memory device 114, each source device 112 a-112 ctransmits a command to the multi-port memory controller 102, such as aread or write command. In addition, the source device 112 a-112 cgenerally must send any data associated with the command, such as datato be written to memory, along with the command to the multi-port memorycontroller 102. Further, the data generally must be in one of aplurality of predetermined lengths. When data expected to be associatedwith the command is not provided with the write command, the memorycontroller 102 generally stalls this command and goes on to the nextcommand from another port. This activity stalls all requests on theoriginal port until the data for the write is received. When the priorart memory controller 102 receives data without a corresponding command,the controller generally views this as an error condition and thetransaction is nullified somehow. Thus commands and data are tightlycoupled in prior art multi-port interfaces.

For example, to write data to the memory device 114 using source device112 a, source device 112 a provides a write command along with thecorresponding data to the multi-port memory controller 102. Themulti-port memory controller 102 then interprets the write command andwrites the corresponding data to the memory device 114 at the memoryaddress specified in the received write command. Thereafter, the writetransaction is completed and the multi-port memory controller 102 canaccept the next command from the same or another source device 112 a-112c.

Similarly, to read data from the memory device 114 using source device112 b, source device 112 b provides a read command to the multi-portmemory controller 102. The multi-port memory controller 102 theninterprets the read command and reads data at the memory addressspecified in the read command from the memory device 114. Next, themulti-port memory controller 102 provides the data received from thememory device 114 to the source device 112 b. Thereafter, the readtransaction is completed and the multi-port memory controller 102 canaccept the next command from the same or another source device 112 a-112c.

As illustrated by the above examples, prior art multi-port interfacesrequire each transaction to be fully completed before the nexttransaction can begin. That is, once a transaction is begun, thetransaction cannot be interrupted to start a new transaction until thefirst transaction is completed. For example, during the above readoperation, the memory device 114 generally requires several clock cyclesto complete the read operation. Thus, the memory controller 102 is idlefor several clock cycles, during which the memory device 114 accessesthe requested data. Unfortunately, prior art multi-port interfaces donot allow the memory controller 102 to begin processing a command fromanother source device 112 a-112 b during this idle time. As a result,the prior art multi-port interfaces generally to do not support fullypipelined architectures wherein data is being processed each clockcycle.

In view of the foregoing, there is a need for a data transactioninterface that allows fully pipelined data processing for multi-portdevices. The data transaction interface should allow for decoupling ofdata and corresponding commands, and should further allow for arbitrarydata lengths and arbitrary starting address locations. Moreover, thedata transaction interfaces should allow transactions to have differentpriorities, thus allowing higher priority transactions to interruptprior received lower priority transactions.

SUMMARY OF THE INVENTION

Broadly speaking, the present invention fills these needs by providing aport independent data transaction interface that allows fully pipelineddata processing for multi-client devices. The data transaction interfaceof the embodiments of the present invention allows de-coupling of dataand corresponding commands, and further allows for arbitrary datalengths and arbitrary starting address locations. In one embodiment, aport independent data transaction interface for multi-port devices isdisclosed. The port independent data transaction interface includes acommand channel that receives command data and a source id. The sourceid indicates a source device that transmitted the command data. Inaddition, a data-in channel is included that receives write data and awrite source id. Similar to the source id, the write source id indicatesa source device that transmitted the write data. The port independentdata transaction interface further includes a data-out channel thatprovides read data and a read id. The read id indicates a source devicethat transmitted a read command corresponding to the read data. The portindependent data transaction interface utilizes the source id toassociate command data with corresponding write data and read data. Inthis manner de-coupling is achieved, for example allowing the write datatransmitted to the data-in channel and corresponding command datatransmitted to the command channel to be processed when transmittedduring different clock signals, as can the read data and correspondingcommand data. In addition, the command channel can further receivelength data indicating a size of data corresponding to the command data,thus allowing the length data to indicate an arbitrary data size.Similarly, the command channel can receive address data indicating anaddress associated with data corresponding to the command data. Theaddress data can indicate an arbitrary starting location for thecorresponding data. Moreover, the command channel can receive a priorityvalue indicating a priority level of the command data, thus allowing thecommand data to be processed based on an associated priority value.

In an additional embodiment, a multi-port memory controller having portindependent data transaction interface is disclosed. The multi-portmemory controller includes a command transfer storage that receivescommand information and a source id, which indicates a source devicethat transmitted the command information. In addition, a data-intransfer storage is included that receives write data and a write sourceid, which also indicates a source device that transmitted the writedata. The source id links the command information with the dataassociated with that command. The multi-port memory controller furtherincludes a data-out transfer storage that provides read data and a readid. The read id indicates a source device that transmitted a readcommand corresponding to the read data. In one aspect, a separatedata-in signal can be included for each source device coupled to themulti-port memory controller. In this aspect, each data-in signal can becoupled to the data-in transfer storage, and each data-in signal can befurther coupled to a data path that circumvents the data-in transferstorage, thus facilitating priority processing when the data-in transferstorage is full.

A method for performing data transactions in a multi-port system isdisclosed in a further embodiment of the present invention. The methodincludes receiving command information and a source id on a commandchannel during clock cycle N. As above, the source id indicates a sourcedevice that transmitted the command data. Also, write data and a writesource id is received on a data-in channel during clock cycle M. Ifthere is more data to be transferred than can be delivered in one clockcycle, the additional data is delivered in subsequent clock cycles.Generally, the subsequent data is delivered in the correct order but theactual cycle of each delivery is variable. The write source id indicatesa source device that transmitted the write data. The command data andthe write data then are associated with each other based on the sourceid and the write source id, and both are transmitted to a processingcircuit for further processing. As will be seen below, cycle N, M, andsubsequent M cycles may be separated by a plurality of clock cycles.Cycle M can even precede cycle N. In addition, read data and a read idcan be provided on a data-out channel during any clock cycle during thistransaction. As above, the read id indicates a source device thattransmitted a different read command corresponding to the read data. Inthis manner, command data can be associated with the read data based ona source id and the read id. As with the above embodiments, the methodcan include receiving a priority value on the command channel duringcycle N, wherein command data is processed based on an associatedpriority value. Other aspects and advantages of the invention willbecome apparent from the following detailed description, taken inconjunction with the accompanying drawings, illustrating by way ofexample the principles of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention, together with further advantages thereof, may best beunderstood by reference to the following description taken inconjunction with the accompanying drawings in which:

FIG. 1A is a block diagram showing a prior art port in a multi-portinterface;

FIG. 1B is a block diagram showing an exemplary prior art multi-portmemory architecture;

FIG. 2 is an exemplary high-level block diagram showing a datatransaction interface for multi-port devices, in accordance with anembodiment of the present invention;

FIG. 3 is a block diagram showing a data transaction system for memoryaccess using a port independent data transaction interface in accordancewith an embodiment of the present invention;

FIG. 4 is a block diagram showing source identification and datarelationships in accordance with an embodiment of the present invention;

FIG. 5 is a timing diagram showing exemplary command channel waveforms,in accordance with an embodiment of the present invention;

FIG. 6 is a timing diagram showing exemplary data-out channel andcommand channel waveforms, in accordance with an embodiment of thepresent invention;

FIG. 7 is a block diagram showing detailed view of a data transactioninterface for multi-port devices, in accordance with an embodiment ofthe present invention; and

FIG. 8 is a timing diagram showing exemplary data-in channel and commandchannel waveforms, in accordance with an embodiment of the presentinvention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

An invention is disclosed for a port independent data transactioninterface that allows fully pipelined data processing for multi-clientdevices. The data transaction interface of the embodiments of thepresent invention allows decoupling of data and corresponding commandsfor both read and write transactions, and further allows for arbitrarydata lengths and arbitrary starting address locations. Moreover,embodiments of the present invention allow transactions to havedifferent priorities, thus allowing higher priority transactions tointerrupt prior received lower priority transactions.

In the following description, numerous specific details are set forth inorder to provide a thorough understanding of the present invention. Itwill be apparent, however, to one skilled in the art that the presentinvention may be practiced without some or all of these specificdetails. In other instances, well known process steps have not beendescribed in detail in order not to unnecessarily obscure the presentinvention.

Embodiments of the present invention provide an interface formulti-client devices that achieves high bandwidth and low latency on allrequests simultaneously. Generally speaking, the multiple ports of themulti-client device can be efficiently arbitrated to get to a singleinterface. That is, n to 1 port arbitration is efficiently achieved.Once this is achieved, requests received at the multi-client device arereordered to achieve a high level of efficiency. Embodiments of thepresent invention define a universal interface that allows forreordering of the requests to achieve a high level of efficiency. Itshould be noted that the interface of the embodiments of the presentinvention is not limited to use in memory controllers. Hence,embodiments of the present invention can be utilized to define aninterface in any system that moves data, such as a DMA engine.

FIG. 2 is an exemplary high-level block diagram showing a datatransaction interface 200 for multi-port devices, in accordance with anembodiment of the present invention. As FIG. 2 illustrates, a datatransfer storage device 201 receives and transmits data using aplurality of independent channels defined by the data transactioninterface 200. These independent channels include a command channel 202,a data-in channel 204, and a data out channel 206.

Each of the independent channels 202-206 provides and receives data toand from a data transfer storage. In particular, the command channel 202provides command data to a command transfer storage 208, and thedata-out channel 206 receives data from a data-out transfer storage 212.In addition, the data-in channel 204 provides write data to a data-intransfer storage 210. The data-in channel 204 also includes a data path214 that circumvents the data-in transfer storage 210 to provide datadirectly to the state machine 216, which can be any device that stores,processes, moves, or otherwise utilizes data and control signalsprovided via the data transaction interface 200. The depths of the datain, data out, and command queues are all individually configurable from1 to N entries.

As will be described in greater detail below, the data-in channel 204includes separate data-in signals from each source device coupled to themulti-port device. That is, if n source devices are couple to themulti-port device, n separate data-in signals, one from each sourcedevice, will be included in the data-in channel. Also as will bedescribed in greater detail below, the data path 214 of the data-inchannel 204 allows for rerouting of write data when the data-in transferstorage 210 is full or the data is needed for a currently executingwrite command in the controller.

Each data transfer storage 208-212 allows received data to be stored forfuture processing. Further, each data transfer storage 208-212 isdecoupled from the other data transfer storages 208-212. As a result,the data transaction interface 200 of the embodiments of the presentinvention allows decoupling of commands and associated data. Thus, thedata transaction interface 200 allows data to be transmitted to amulti-port device before or after the corresponding command istransmitted to the multi-port device. Moreover, the decoupled datatransfer storages 208-212 allow for fully pipelined data processing andpriority control, as described next with reference to FIG. 3.

FIG. 3 is a block diagram showing a data transaction system 300 formemory access using a port independent data transaction interface inaccordance with an embodiment of the present invention. The datatransaction system 300 includes a multi-port memory controller 302having an initiator 304 and a data transfer storage device 301. Themulti-port memory controller 302 controls access to a memory device 308.Coupled to each port of the multi-port memory controller 302 is a sourcedevice 306 a-306 c. As mentioned above the embodiments of the presentinvention allow fully pipelined data processing for multi-clientdevices. The data transaction interface of the embodiments of thepresent invention allows decoupling of data and corresponding commands,and further allows transactions to have different priorities, thusallowing higher priority transactions to interrupt prior received lowerpriority transactions.

Embodiments of the present invention provide priority and command/datadecoupling by identifying the source of each request. FIG. 4 is a blockdiagram showing source identification and data relationships inaccordance with an embodiment of the present invention. Specifically,FIG. 4 illustrates source identification and data relationships for thecommand channel 202, the data-out channel 206, and the data-in channel204. For each transaction, embodiments of the present invention identifythe source of the transaction request. For example, when command data402 is received on the command channel 202, a source_id 400 identifyingthe source device that transmitted the command data 402 is provided withthe command data 402. Similarly, when data-out data 406 is provided onthe data-out channel 206, a read_id 404 is provided with the data-outdata 406. The read_id 404 identifies the source device requesting thedata-out data 406, and corresponds to the source_id 400 that the sourcedevice provided with the read command.

In one embodiment, when data-in data 408 is received on the data-inchannel 204, a source_id 400 identifying the source device thattransmitted the data-in data 408 can be included with the data-in data408. In one embodiment, the source_id 400 can be appended to the data-indata 408 instead of using separate data lines for the source id 400.However, is should be noted that other mechanisms can be utilized toidentify the source of the data-in data 408. Using source_ids 400 andwrite_ids 404 embodiments of the present invention allow decoupling ofcommand data and corresponding read/write data because the source_ids400 and read_ids 404 can be used to associate commands withcorresponding data even when received at different times.

For example, referring back to FIG. 3, source device 0 306 a cantransmit write data to the memory controller 302, along with a source_ididentifying source device 0 306 a as the source of the write data.Subsequently, the source device 0 306 a can provide a write commandindicating the write memory address, data length, and other writecommand data to the memory controller 302. Along with the command datathe source device 0 306 a transmits a source_id identifying sourcedevice 0 306 a as the source of the write command. In this manner, thememory controller 302 can match the source_id of the write command tothe source_id of the write data, and thus process the write command.

Table 1 illustrates command channel signals for the port independentdata transaction interface, in accordance with an embodiment of thepresent invention. TABLE 1 Command Type Description command_type [C:0]Input Encoded signal to indicate what action is requested of thecontroller. command_valid Input Control signal indicating there is avalid command on the command interface. command_queue_full OutputControl signal signifying that the controller is not accepting requests.address[A:0] Input Starting address of data transfer in bytes.length[L:0] Input Length of data transfer in bytes. A value of 0indicates the maximum byte request. source_id[S:0] Input ID associatedwith the command to be used in read and write data interfaces to tagdata with a particular command. Priority[P:0] Input Relative priority ofcommand.

The command channel of the embodiments of the present invention is afully pipelined storage based interface that allows the user to specifycommands every cycle. Commands for data are specified by a startingaddress and a length field, both of which can be specified in bytes. Inone embodiment, the interface for reading data from or writing toexternal memory devices is enabled via a single synchronous port. Eachrequest for data is defined by a starting address and a length. Thelength of the request determines how many bytes are to be transferredstarting at the address specified. The client device signifies a validrequest by asserting the command_valid signal along with the commandtype, starting address, and the length of the request. In addition, inone embodiment, the client device samples the command_queue_full signalfrom the memory controller to determine when another command can beissued to the memory controller.

The starting address passed to the memory controller can be for any byteaddress and a particular number of bytes. For read commands, the memorycontroller can access the memory and return as many words as necessaryto complete the transfer. The same is true for write commands, however,the client device delivers the correct number of words to complete thewrite transaction. The number of words returned depends on the startingaddress, the length of the request, and the width of the data-out bus.

Table 2 illustrates command type definitions for the port independentdata transaction interface, in accordance with an embodiment of thepresent invention. TABLE 2 Command Type Value Description Write 00Perform a contiguous write of the specified number of bytes starting atthe specified byte address. The write data should be presented on thedata-in channel along with an associated data-in valid signal Read 01Perform a read of the specified number of bytes starting at thespecified byte address. The read data will be presented on the data-outchannel along with the associated data- out_valid signal Masked_Write 10Perform a write of the specified number of bytes starting at thespecified byte address. The number of bytes and the starting address canbe such that the data can be presented as one user word. If multipleuser words need to be transferred along with the byte mask then multipleMasked_Write commands can be issued. The write data can be presented onthe data-in channel along with an associated data-in_valid signal anddata mast value. This command is used to write non-contiguous bytes peruser word. For contiguous write data, use the write command and specifystarting byte address and byte length. Refresh 11 Perform a refreshcycle to the DRAM devices

FIG. 5 is a timing diagram showing exemplary command channel waveforms500, in accordance with an embodiment of the present invention. Thecommand channel waveforms 500 include signals for the clock 502, addresslines 504, length lines 506, command_type lines 508, source_id lines510, priority lines 512, command_valid lines 514, and command_queue_fulllines 516.

In the example of FIG. 5, the command channel first receives a writerequest from source device 0 to write data having a length L0 to memoryaddress A0, and having a priority of level 2. Thus, address A0 isreceived on the address lines 504 and length L0 is received on thelength lines 506. Also, a write command type is received on thecommand_type lines 508 and a priority of 2 is received on the prioritylines 512. In addition, the source_id 0 is received on the source_idlines 510 identifying source device 0 as the source of the writecommand. Finally, source device 0 signifies the request is valid byasserting the command_valid lines 514.

Since the command channel is pipelined to be able to accept commandsuntil the command transfer storage is full, the command_queue_full lines516 are utilized to function as a handshaking signal back to the sourcedevice to indicate whether the command was accepted. Advantageously, thesource device does not respond or stop the pipeline in the same cycle asthe command_queue_full signal asserts or de-asserts. The memorycontroller accepts commands whenever the command_valid signal isasserted and the registered value of the command_queue_full signal isnot asserted. As a result, the source device logic has one entire cycleto stop the pipeline of commands. The pipeline stalls as soon as theregistered value of the command_queue_full signal 516 asserts and canresume as soon as the registered value of the command_queue_fullde-asserts. In this example, the command transfer storage is not fullwhen the command from source device 0 is received, and hence thecommand_queue_full signal 516 is not asserted.

Next, the command channel receives a write request from source device 1to write data having a length L1 to memory address A1, and having apriority of level 3. Thus, address A1 is received on the address lines504 and length L1 is received on the length lines 506. Also, the writecommand type remains on the command_type lines 508 and a priority of 3is received on the priority lines 512. In addition, the source_id 1 isreceived on the source_id lines 510 identifying source device 1 as thesource of the write command. Finally, source device 1 signifies therequest is valid by asserting the command_valid lines 514. However, nowcommand transfer storage is full, and as a result, thecommand_queue_full lines 516 are asserted. In response, the above datais left on the lines until the command_queue_full lines 516 arede-asserted in the next clock cycle.

Finally, the command channel receives a write request from source device0 to write data having a length L2 to memory address A2, and having apriority of level 2. Thus, address A2 is received on the address lines504 and length L2 is received on the length lines 506. Also, the writecommand type remains on the command_type lines 508 and a priority of 2is received on the priority lines 512. In addition, the source_id 0 isreceived on the source_id lines 510 identifying source device 0 as thesource of the write command. Finally, source device 0 signifies therequest is valid by asserting the command_valid lines 514. Since, thecommand transfer storage is not full when the command from source device0 is received, the command_queue_full signal 516 is not asserted and thecommand is accepted.

Table 3 below illustrates data-out channel signals for the portindependent data transaction interface, in accordance with an embodimentof the present invention. TABLE 3 Signal Type Description dataout[127:0]Output The read data associated with a read command. dataout_(—) OutputWhen asserted the data on dataout is valid. available The memorycontroller assumes this data is captured unless the optionaldataout_accept pin is configured. dataout_accept Input This signalallows the client device to throttle incoming read data. 0 = Data notaccepted. The memory controller holds the data on the dataout linesuntil this signal de-asserts. 1 = Data on the dataout lines is accepted.The memory controller is free to post new data on the dataout lines.read_id Output Source ID for read data. This ID corresponds to thesource ID sent with the read command on the command channel.

Read data is returned on the data-out channel of the memory controller.In one embodiment, the data is returned in a word aligned manner basedon the size of the data bus defined for the memory controller. The readdata is returned in consecutive cycles whenever possible. Requests thatcross page boundaries or are interrupted by refresh requirements mayinclude cycles where the dataout_available will de-assert and thereassert when the subsequent data is available.

The read data returned can be stalled if the read data cannot beconsumed from the memory controller as fast as the memory controller canprovide the data. The read data transfer storage along with thedataout_accept input signal controls this operation, as illustrated nextwith reference to FIG. 6. FIG. 6 is a timing diagram showing exemplarydata-out channel and command channel waveforms 600, in accordance withan embodiment of the present invention. The waveforms 600 includecommand channel signals for the clock 502, address lines 504, lengthlines 506, command_type lines 508, source_id lines 510, priority lines512, command_valid lines 514, and command_queue_full lines 516. Thewaveforms 600 also illustrated data-out channel signals fordataout_available lines 602, dataout_accept lines 604, dataout lines606, and read_id lines 608.

In the example of FIG. 6, the command channel receives a read requestfrom source device 1 to read data having a length L0 located at memoryaddress A0, and having a priority of level 2. Thus, address A0 isreceived on the address lines 504 and length L0 is received on thelength lines 506. Also, a read command type is received on thecommand_type lines 508 and a priority of 2 is received on the prioritylines 512. In addition, the source_id 1 is received on the source_idlines 510 identifying source device 1 as the source of the read command.Finally, source device 1 signifies the request is valid by asserting thecommand_valid lines 514.

Upon completing the request, data D0 is placed on the dataout lines 606and read_id 1 is placed on the read_id lines 608, indicating the datacorresponds to a read request from source device 1. In addition, thememory controller signifies the data is ready by asserting thedataout_available lines 602. Since, in this example, the source devicecan accept the data D0, the source device asserts the dataout_acceptlines 604, allowing the memory controller to place the next data D1 onthe dataout lines 606. Data D1 also corresponds to a request from sourcedevice 1, so read_id 1 remains on the read_id lines 608, and the memorycontroller signifies the data is ready by asserting thedataout_available lines 602. However, in this cycle, source device 1 isunable to accept the data D1, and thus de-asserts the dataout_acceptlines 604. In response, the memory controller leaves data D1 on thedataout lines 606 and read_id 1 on the read_id lines 608. In thesubsequent clock cycle 502, source device 1 signals its acceptance ofthe data D1 by asserting the dataout_accept lines 604, allowing thememory controller to place the next data on the dataout lines 606.

FIG. 7 is a block diagram showing detailed view of a data transactioninterface 700 for multi-port devices, in accordance with an embodimentof the present invention. As described above, independent channelsdefined by the data transaction interface 700 are utilized to receiveand transmit data, and include a command channel 202, data-in channels204 a-204 c, and a data-out channel 206.

As described above, each of the independent channels 202-206 providesand receives data to and from a data transfer storage. In particular,the command channel 202 provides command data to the command transferstorage 208, and the data-out channel 206 receives data from thedata-out transfer storage 212. The command channel can further includecommand control logic 708 to control the rate at which commands arereceived from the command channel. For example, the command controllogic can provide a signal 702, such as the command_queue_full signal,to indicate the command transfer storage 208 is full. In a similarmanner the data-out channel can include data-out control logic 710 tocontrol the data-out signals. For example, the data-out control logic710 can provide and receive signals 706 to indicate when data isavailable and when data is accepted by a source device.

The data-in channel includes separate data-in signals 204 a-204 c fromeach source device coupled to the multi-port device. That is, if nsource devices are coupled to the multi-port device, n separate data-insignals 204 a-204 c, one from each source device, will be included inthe data-in channel. Each data-in signal 204 a-204 c is coupled to thedata-in transfer storage 210.

Table 4 below illustrates data-in channel signals for the portindependent data transaction interface, in accordance with an embodimentof the present invention. TABLE 4 Signal Type Description datain_X[D:0]Input The write data associated with a write command. datain_valid_XInput When asserted the data on datain is valid. The controller capturesthe data on the datain lines unless the datain_(—) queue_full signal isasserted. If the datain_queue_full signal is asserted, the source deviceshould keep the datain_valid signal high and hold the datain signaluntil the datain_(—) queue_full signal de-asserts. datain_mask_X[M:0]Input Data in byte mask. This is a byte mask for the incoming datainsignals. This field is ignored during normal write transactions. DuringMasked_Write transactions, this field is used to mask out write datawithin the starting address and length parameters. 0 = do not mask byte1 = mask byte datain_queue_full_X Output This signal allows the memorycontroller to throttle write data.

As mentioned above, multiple data-in signals are included in the data-inchannel. Each data-in signal corresponds to a particular source_id. Intable 4, the signals are appended with _X, wherein X is the number ofthe source_id. Thus, write data for that particular source_id istransferred using this set of interface pins. Write data can be sent tothe data-in channel at any time before, during, or after the associatedwrite command is issued to the memory controller. In one embodiment, thememory controller executes write transactions from a single source_id inorder.

In operation, the memory controller accepts data whenever thedata_valid_X signal is asserted and the registered value of thedatain_queue_full_X signal is not asserted. This means that the sourcedevice has one entire cycle to stop the pipeline of data. The pipelinestalls as soon as the registered value of datain_queue_full_X assertesand can resume as soon as the registered value of the commanddatain_queue_full de-asserts. Similar to read requests, during a writerequest the source device supplies a starting address, the length of therequest, the source_id, priority, and the command_valid signal.

As described above, the data-in channel is configured with a data-intransfer storage, which allows the source device to present data to thememory controller at any time without any throughput performance impactand simplifying the data transfer control logic. The source device isfree to send write data to the memory controller before, during, orafter a write command is issued as long as the datain_queue_full signalis not asserted. In one embodiment, the memory controller can wait toperform the write until enough data is captured to complete a burst tothe memory. In this embodiment, any latency penalty is paid during the“startup” of the pipeline. Once the pipe is full, the data is written tothe memory with no throughput impact. The depth of the data-in transferstorage can be, for example, eight words. In addition, the data-intransfer storage allows write data for each source_id to be storedwithin the memory controller and used when the particular transactionreaches the head of the placement queue. The data-in transfer storagecan also be divided up into segments, where each segment is allocatedfor data from one or more source_ids.

FIG. 8 is a timing diagram showing exemplary data-in channel and commandchannel waveforms 800, in accordance with an embodiment of the presentinvention. The waveforms 800 include command channel signals for theclock 502, address lines 504, length lines 506, command_type lines 508,source_id lines 510, priority lines 512, command_valid lines 514, andcommand_queue_full lines 516. The waveforms 800 also illustrated data-inchannel signals for datain_valid_1 lines 802, datain-queue_full_1 lines804, and datain_1 lines 806.

In the example of FIG. 8, the command channel receives a write requestfrom source device 1 to write data having a length L0 located at memoryaddress A0, and having a priority of level 2. Thus, address A0 isreceived on the address lines 504 and length L0 is received on thelength lines 506. Also, a write command type is received on thecommand_type lines 508 and a priority of 2 is received on the prioritylines 512. In addition, the source_id 1 is received on the source_idlines 510 identifying source device 1 as the source of the writecommand. Finally, source device 1 signifies the request is valid byasserting the command_valid lines 514.

In addition, appropriate data for source device 1 is placed on thedata-in channel signals for source device 1. In particular, data D0 isplaced on the datain_1 lines 806, indicating D0 is write data fromsource device 1. In addition, source device 1 asserts the datain_valid_1lines 802 to indicate data is ready to be read from the datain_1 lines806. Since, in this example, the data-in transfer storage is not full,the datain_queue_full_1 is de-assert, indicating the write data D0 isaccepted. Although FIG. 8 shows the data for the command arrivingcoincident with the write command, the data for this command may arrivebefore or after the write command.

Although the foregoing invention has been described in some detail forpurposes of clarity of understanding, it will be apparent that certainchanges and modifications may be practiced within the scope of theappended claims. Accordingly, the present embodiments are to beconsidered as illustrative and not restrictive, and the invention is notto be limited to the details given herein, but may be modified withinthe scope and equivalents of the appended claims.

1. A port independent data transaction interface for multi-port devices,comprising: a command channel that receives command data and a sourceid, the source id indicating a source device that transmitted thecommand data; a data-in channel that receives write data and a writesource id, the write source id indicating a source device thattransmitted the write data; and a data-out channel that provides readdata and a read id, the read id indicating a source device thattransmitted a read command corresponding to the read data.
 2. A portindependent data transaction interface as recited in claim 1, whereinthe source id is utilized to associate command data with correspondingwrite data.
 3. A port independent data transaction interface as recitedin claim 2, wherein the write data transmitted to the data-in channeland corresponding command data transmitted to he command channel areprocessed when transmitted during different clock signals.
 4. A portindependent data transaction interface as recited in claim 1, whereinthe command channel further receives length data indicating a size ofdata corresponding to the command data, wherein the length data canindicate an arbitrary data size.
 5. A port independent data transactioninterface as recited in claim 4, wherein the command channel furtherreceives address data indicating an address associated with datacorresponding to the command data, wherein the address data can indicatean arbitrary starting location.
 6. A port independent data transactioninterface as recited in claim 1, wherein the command channel furtherreceives a priority value indicating a priority level of the commanddata.
 7. A port independent data transaction interface as recited inclaim 6, wherein command data is processed based on an associatedpriority value.
 8. A multi-port memory controller having portindependent data transaction interface, comprising: a command transferstorage that receives command data and a source id, the source idindicating a source device that transmitted the command data; a data-intransfer storage that receives write data and a write source id, thewrite source id indicating a source device that transmitted the writedata; and a data-out transfer storage that provides read data and a readid, the read id indicating a source device that transmitted a readcommand corresponding to the read data.
 9. A multi-port memorycontroller as recited in claim 8, wherein the source id is utilized toassociate command data with corresponding write data.
 10. A multi-portmemory controller as recited in claim 9, wherein the write datatransmitted to the data-in transfer storage and corresponding commanddata transmitted to the command transfer storage are processed whentransmitted during different clock signals.
 11. A multi-port memorycontroller as recited in claim 8, further including a separate data-insignal for each source device coupled to the multi-port memorycontroller.
 12. A multi-port memory controller as recited in claim 11,wherein each data-in signal is coupled to the data-in transfer storage.13. A multi-port memory controller as recited in claim 12, wherein eachdata-in signal further is coupled to a data path that circumvents thedata-in transfer storage.
 14. A multi-port memory controller as recitedin claim 8, wherein the command transfer storage further receives apriority value indicating a priority level of the command data.
 15. Amulti-port memory controller as recited in claim 14, wherein commanddata is processed based on an associated priority value.
 16. A methodfor performing data transactions in a multi-port system, comprising theoperations of: receiving command data and a source id on a commandchannel during a first clock cycle, the source id indicating a sourcedevice that transmitted the command data; receiving write data and awrite source id on a data-in channel during a second clock cycle, thewrite source id indicating a source device that transmitted the writedata; associating the command data with the write data based on thesource id and the write source id; and transmitting both the commanddata and write data to a processing circuit for further processingduring a third clock cycle.
 17. A method as recited in claim 16, whereinthe first clock cycle, second clock cycle, and third clock cycle areeach separated by a plurality of clock cycles.
 18. A method as recitedin claim 16, further comprising the operation of providing read data anda read id on a data-out channel during a fourth clock cycle, the read idindicating a source device that transmitted a read command correspondingto the read data.
 19. A method as recited in claim 18, furthercomprising the operation of associating command data with the read databased on a source id and the read id.
 20. A method as recited in claim16, further comprising the operation of receiving a priority value onthe command channel during the first clock cycle, wherein command datais processed based on an associated priority value.